const mongoose = require('../utils/DB/connectDB')('fantasy');
const Schema = mongoose.Schema;

const AreaListSchema = new Schema({
    // code: 地区编码
    code: {
        type: String,
        index: true,
        required: true
    },
    level: {
        type:  Number,
        required: true
    },
    name: {
        type: String,
        required: true,
        index: true
    },
    areaList: {
        type: Array
    }
})

module.exports = mongoose.model( 'AreaList', AreaListSchema, 'areaList' )
